export class UserNetStatus {
  // 用户 0 网络正常  1 断网
  private nstatus: number = 0;

  public disconnection() {
    this.nstatus = 1;
  }
  public online() {
    this.nstatus = 0;
  }

  public isOnline() {
    return this.nstatus === 0;
  }

  public isDisconnection() {
    return this.nstatus === 1;
  }
}